package com.eh.adapter.enumerationSimulator;


import com.google.common.collect.Lists;

import java.util.List;

/**
 * Created by David on 2016/4/30.
 */
public class EnumerationSimulator {
    public static void main(String[] args) {

        List<String> strs = Lists.newArrayList();
        strs.add("Hello");
        strs.add("World");

        IteratorEnumeration iteratorEnumeration = new IteratorEnumeration(
                strs.iterator());

        while (iteratorEnumeration.hasMoreElements()) {
            System.out.println(iteratorEnumeration.nextElement());
        }
    }
}
